package com.ricchieri.service.interf;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.filter.EmailTemplateFilter;
import com.ricchieri.model.EmailTemplate;

public interface IEmailTemplateService {
	@Transactional(readOnly = true)
	public List<EmailTemplate> getAllEmailTemplate();

	public void addTemplate (EmailTemplate emailTemplate);

	public int getAllEmailTemplatePaginatedCountByFilter(EmailTemplateFilter emailTypeToSend);

	public List<EmailTemplate> getAllEmailTemplatePaginatedByFilter(EmailTemplateFilter emailTypeToSend,
			int startRecord);

	public void deleteEmailTemplate(EmailTemplate selectedEmailTemplate);

	public void updateTemplate(EmailTemplate emailTemplate);
	
	public EmailTemplate getEmailTemplateByFilter(EmailTemplateFilter emailTypeToSend);
}
